<?php

class Profile extends CI_Controller{

function index(){
$id=$this->session->userdata('userid');
$query="select * from user where `id`='$id'";
$result=$this->db->query($query);
foreach($result->result as $user){
$data['namadepan']=$user->userdata;
$data['namabelakang']=$user->namabelakang;
$data['email']=$user->email;
$data['tanggallahir']=$user->tanggallahir;
$data['konferensi']=explode(",",$user->konferensi);
$data['lokasi']=explode(",",$user->lokasi);
$data['gender']=$user->gender;
$data['nationality']=$user->nationality;
$data['interest']=explode(",",$user->intersest);
$data['badges']=$user->badges;
}
$this->load->view('profile',$data);
}



}